/*
- Malt Project - bool.cpp
- This document is protected by the GPL protocol.
- Writer:@Index-Flandre
*/

#include "../../include/object/bool.hpp"

namespace malt
{
bool Bool::eq(Object *obj)
{
	return obj == this;
}

void Bool::repl_print()
{
	printf("\e[34;1m%s\e[0m", this->val ? "true" : "false");
}

Bool True, False;

extern inline void BoolInit()
{
	True.tp = &BoolType;
	False.tp = &BoolType;
	True.val = true;
	False.val = false;
}

}
